package com.etime.shycourse.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author wb
 * @since 2022-03-24
 */
@ApiModel(value = "Saler对象", description = "销售人员")
public class Saler implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "salerid", type = IdType.AUTO)
    private Integer salerid;

    private Integer userid;

    private Integer deptid;

    private Integer salerdeptid;

    private String salercode;

    private String salerbankname;

    private String salerbanknum;

    private String field1;

    private String field2;

    private String field3;

    private Integer salerauditstate;

    private String salerauditdesc;

    @ApiModelProperty(value = "-1 :负数表示使用统一的提成比例设置")
    private BigDecimal salertakepoint;


    public Integer getSalerid() {
        return salerid;
    }

    public void setSalerid(Integer salerid) {
        this.salerid = salerid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public Integer getSalerdeptid() {
        return salerdeptid;
    }

    public void setSalerdeptid(Integer salerdeptid) {
        this.salerdeptid = salerdeptid;
    }

    public String getSalercode() {
        return salercode;
    }

    public void setSalercode(String salercode) {
        this.salercode = salercode;
    }

    public String getSalerbankname() {
        return salerbankname;
    }

    public void setSalerbankname(String salerbankname) {
        this.salerbankname = salerbankname;
    }

    public String getSalerbanknum() {
        return salerbanknum;
    }

    public void setSalerbanknum(String salerbanknum) {
        this.salerbanknum = salerbanknum;
    }

    public String getField1() {
        return field1;
    }

    public void setField1(String field1) {
        this.field1 = field1;
    }

    public String getField2() {
        return field2;
    }

    public void setField2(String field2) {
        this.field2 = field2;
    }

    public String getField3() {
        return field3;
    }

    public void setField3(String field3) {
        this.field3 = field3;
    }

    public Integer getSalerauditstate() {
        return salerauditstate;
    }

    public void setSalerauditstate(Integer salerauditstate) {
        this.salerauditstate = salerauditstate;
    }

    public String getSalerauditdesc() {
        return salerauditdesc;
    }

    public void setSalerauditdesc(String salerauditdesc) {
        this.salerauditdesc = salerauditdesc;
    }

    public BigDecimal getSalertakepoint() {
        return salertakepoint;
    }

    public void setSalertakepoint(BigDecimal salertakepoint) {
        this.salertakepoint = salertakepoint;
    }

    @Override
    public String toString() {
        return "Saler{" +
                "salerid=" + salerid +
                ", userid=" + userid +
                ", deptid=" + deptid +
                ", salerdeptid=" + salerdeptid +
                ", salercode=" + salercode +
                ", salerbankname=" + salerbankname +
                ", salerbanknum=" + salerbanknum +
                ", field1=" + field1 +
                ", field2=" + field2 +
                ", field3=" + field3 +
                ", salerauditstate=" + salerauditstate +
                ", salerauditdesc=" + salerauditdesc +
                ", salertakepoint=" + salertakepoint +
                "}";
    }
}
